<?php 
	require_once("../_inc/sessions.php");
	require_once("../_inc/functions.php");

	if (preg_match("/MSIE/i", $_SERVER['HTTP_USER_AGENT'])) {
		redirect_to("/invalid_browser");
	}

	require_once("../_inc/connection.php");
	confirm_staff_logged_in();
	require_once("../_inc/header.php"); 
?>

<div id="leftboard">
	<ul id="leftnav">
		<li><a href="" id="edit_my">My Password</a></li>
		<li><a href="" id="edit_user">User Password</a></li>
		<li><a href="logout">Logout</a></li>
	</ul>
</div>
<div id="rightboard">
	<div id="show_user" style="display:none;">
		<h3>Edit User Password</h3>
		<table>
			<tr>
				<td>Normal Web</td>
				<td><input type='password' value='' id='web1' size='20' maxlength='20'></td>
				<td><input type='password' value='' id='web2' size='20' maxlength='20'></td>
				<td><input type='button' value='Update' id='wup'></td>
			</tr>
			<tr>
				<td>Web+Torrent</td>
				<td><input type='password' value='' id='tor1' size='20' maxlength='20'></td>
				<td><input type='password' value='' id='tor2' size='20' maxlength='20'></td>
				<td><input type='button' value='Update' id='tup'></td>
			</tr>
		</table>
		<table id='cat_table_add'></table>
	</div>
	<div id="show_my" style="display:none;">
		<h3>Edit My Password</h3>
		<table>
			<tr>
				<td>My Password</td>
				<td><input type='password' value='' id='my1' size='20' maxlength='20'></td>
				<td><input type='password' value='' id='my2' size='20' maxlength='20'></td>
				<input type="hidden" value="<?php echo "{$_SESSION['staff_id']}"; ?>" id="uid">
				<td><input type='button' value='Update' id='mup'></td>
			</tr>
		</table>
	</div>

</div>

<?php require_once("../_inc/footer.php"); ?>